﻿using System;
using System.Diagnostics;

namespace Devme.Diagnostics
{
    public class SystemStopwatch : IStopwatch
    {
        readonly Stopwatch _stopwatch;

        public TimeSpan Elapsed
        {
            get { return _stopwatch.Elapsed; }
        }

        public SystemStopwatch()
        {
            _stopwatch = new Stopwatch();
        }

        public void Start()
        {
            _stopwatch.Start();
        }

        public void Stop()
        {
            _stopwatch.Stop();
        }
    }
}